home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Xconq 7.1.0 / src / xconq-7.1.0 / kernel / table.def < prev    next >
Encoding:
Text File  |  1996-07-07  |  26.4 KB  |  708 lines  |  [TEXT/R*ch]

  1. /* Definitions of all the tables in Xconq GDL.
  2.    Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Stanley T. Shebs.
  3.  
  4. Xconq is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.  See the file COPYING.  */
  8.  
  9. DEF_UT_TABLE("accident-damage", ut_accident_damage,
  10.     "damage from an accident",
  11.     utaccidentdamage, constaccidentdamage, 0, 0, TABHI)
  12.  
  13. DEF_UT_TABLE("accident-hit-chance", ut_accident_hit,
  14.     "chance to be hit in given terrain type, as .01% chance",
  15.     utaccidenthit, constaccidenthit, 0, 0, TABHI)
  16.  
  17. DEF_UT_TABLE("accident-vanish-chance", ut_accident_vanish,
  18.     "chance to vanish in given terrain type, as .01% chance",
  19.     utaccidentvanish, constaccidentvanish, 0, 0, TABHI)
  20.  
  21. DEF_UU_TABLE("acp-for-retreat", uu_acp_retreat,
  22.     "extra acp available when retreating",
  23.     uuacpretreat, constuuacpretreat, TABLO, 0, TABHI)
  24.  
  25. DEF_UT_TABLE("acp-night-effect", ut_acp_night_effect,
  26.     "effect of night on acp",
  27.     utacpnighteffect, constutacpnighteffect, 0, 100, TABHI)
  28.  
  29. DEF_UU_TABLE("acp-occupant-effect", uu_acp_occ_effect,
  30.     "effect of occupants on acp",
  31.     uuacpocceffect, constuuacpocceffect, 0, 100, TABHI)
  32.  
  33. DEF_UT_TABLE("acp-to-add-terrain", ut_acp_to_add_terrain,
  34.     "the acp needed by a type of unit to add a type of terrain",
  35.     utacptoaddterrain, constutacptoaddterrain, 0, 0, TABHI)
  36.  
  37. DEF_UU_TABLE("acp-to-attack", uu_acp_to_attack,
  38.     "acp needed by a type of unit to attack another type",
  39.     uuacptoattack, constuuacptoattack, 0, 1, TABHI)
  40.  
  41. DEF_UU_TABLE("acp-to-be-fired-on", uu_acp_to_be_fired_on,
  42.     "acp used up by a type of unit when fired on by another type",
  43.     uuacptobefiredon, constuuacptobefiredon, 0, 1, TABHI)
  44.  
  45. DEF_UU_TABLE("acp-to-build", uu_acp_to_build,
  46.     "acp needed by a type of unit to work on another type",
  47.     uuacptobuild, constuuacptobuild, 0, 0, TABHI)
  48.  
  49. DEF_UU_TABLE("acp-to-capture", uu_acp_to_capture,
  50.     "acp needed by a type of unit to capture another type",
  51.     uuacptocapture, constuuacptocapture, 0, 0, TABHI)
  52.  
  53. DEF_UU_TABLE("acp-to-change-type", uu_acp_to_change_type,
  54.     "acp needed by one type of unit to change to another type",
  55.     uuacptochangetype, constuuacptochangetype, 0, 0, TABHI)
  56.  
  57. DEF_UU_TABLE("acp-to-create", uu_acp_to_create,
  58.     "acp needed by one type of unit to create another type",
  59.     uuacptocreate, constuuacptocreate, 0, 0, TABHI)
  60.  
  61. DEF_UU_TABLE("acp-to-defend", uu_acp_to_defend,
  62.     "acp used up by a type of unit to defend against another type",
  63.     uuacptodefend, constuuacptodefend, 0, 1, TABHI)
  64.  
  65. DEF_UU_TABLE("acp-to-enter-unit", uu_acp_to_enter,
  66.     "acp needed by one type of unit to enter another type",
  67.     uuacptoenter, constuuacptoenter, 0, 1, TABHI)
  68.  
  69. DEF_UM_TABLE("acp-to-load", um_acp_to_load,
  70.     "",
  71.     umacptoload, constumacptoload, 0, 0, TABHI)
  72.  
  73. DEF_UT_TABLE("acp-to-remove-terrain", ut_acp_to_remove_terrain,
  74.     "acp needed to remove a type of terrain",
  75.     utacptoremoveterrain, constutacptoremoveterrain, 0, 0, TABHI)
  76.  
  77. DEF_UM_TABLE("acp-to-produce", um_acp_to_produce,
  78.     "",
  79.     umacptoproduce, constumacptoproduce, 0, 0, TABHI)
  80.  
  81. DEF_UU_TABLE("acp-to-repair", uu_acp_to_repair,
  82.     "acp needed by one type of unit to repair another type",
  83.     uuacptorepair, constuuacptorepair, 0, 0, TABHI)
  84.  
  85. DEF_UU_TABLE("acp-to-research", uu_acp_to_research,
  86.     "acp needed by one type of unit to research another type",
  87.     uuacptoresearch, constuuacptoresearch, 0, 0, TABHI)
  88.  
  89. DEF_UU_TABLE("acp-to-toolup", uu_acp_to_toolup,
  90.     "acp needed by one type of unit to toolup another type",
  91.     uuacptotoolup, constuuacptotoolup, 0, 0, TABHI)
  92.  
  93. DEF_UM_TABLE("acp-to-unload", um_acp_to_unload,
  94.     "",
  95.     umacptounload, constumacptounload, 0, 0, TABHI)
  96.  
  97. DEF_TT_TABLE("adjacent-terrain-effect", tt_adj_terr_effect,
  98.     "effect of adjacent terrain on another",
  99.     ttadjterreffect, constttadjterreffect, -1, -1, 0)
  100.  
  101. DEF_UT_TABLE("alter-terrain-range", ut_alter_range,
  102.     "distance at which a unit can alter terrain",
  103.     utalterrange, constutalterrange, 0, 0, TABHI)
  104.  
  105. DEF_UT_TABLE("altitude-max", ut_alt_max,
  106.     "how high unit can go in the terrain",
  107.     utaltmax, constutaltmax, TABLO, 0, TABHI)
  108.  
  109. DEF_UT_TABLE("altitude-min", ut_alt_min,
  110.     "how low unit can go in the terrain",
  111.     utaltmin, constutaltmin, TABLO, 0, TABHI)
  112.  
  113. DEF_UU_TABLE("attack-range", uu_attack_range,
  114.     "maximum distance at which a unit may attack",
  115.     uuattackrange, constuuattackrange, -1, 1, TABHI)
  116.  
  117. DEF_UU_TABLE("attack-range-min", uu_attack_range_min,
  118.     "minimum distance at which a unit may attack",
  119.     uuattackrangemin, constuuattackrangemin, -1, 0, TABHI)
  120.  
  121. DEF_UT_TABLE("attack-terrain-effect", ut_attack_terrain_effect,
  122.     "effect of terrain on an attack's hit chance",
  123.     utattackterraineffect, constutattackterraineffect, 0, 100, TABHI)
  124.  
  125. DEF_UT_TABLE("attrition", ut_attrition,
  126.     "base chance to lose hp in given terrain type",
  127.     utattrition, constutattrition, 0, 0, TABHI)
  128.  
  129. DEF_UU_TABLE("auto-repair", uu_auto_repair,
  130.     "amount of automatic repair of damage",
  131.     uuautorepair, constuuautorepair, 0, 0, TABHI)
  132.  
  133. DEF_UU_TABLE("auto-repair-range", uu_auto_repair_range,
  134.     "distance up to which automatic repair of damage can occur",
  135.     uuautorepairrange, constuuautorepairrange, -1, 0, TABHI)
  136.  
  137. DEF_UM_TABLE("base-consumption", um_base_consumption,
  138.     "basic amount of supply consumption in each turn",
  139.     umbaseconsumption, constumbaseconsumption, 0, 0, TABHI)
  140.  
  141. DEF_UM_TABLE("base-production", um_base_production,
  142.     "basic amount of supply production",
  143.     umbaseproduction, constumbaseproduction, 0, 0, TABHI)
  144.  
  145. DEF_UU_TABLE("bridge", uu_bridge,
  146.     "whether an assault can cross to a unit on impassable terrain",
  147.     uubridge, constbridge, 0, 0, TABHI)
  148.  
  149. DEF_UU_TABLE("build-range", uu_build_range,
  150.     "max distance between unit and unit being worked on",
  151.     uubuildrange, constuubuildrange, -1, 0, TABHI)
  152.  
  153. DEF_UU_TABLE("can-enter-independent", uu_can_enter_indep,
  154.     "true if the type can enter an indep of some other type",
  155.     uucanenterindep, constuucanenterindep, 0, 0, 1)
  156.  
  157. DEF_UU_TABLE("capture-chance", uu_capture,
  158.     "base chance for one type of unit to capture another type",
  159.     uucapture, constuucapture, 0, 0, 100)
  160.  
  161. DEF_TM_TABLE("change-on-exhaustion-chance", tm_change_on_exhaust,
  162.     "chance that terrain will change type if no more of material",
  163.     tmchangeonexhaust, consttmchangeonexhaust, 0, 0, 100)
  164.  
  165. DEF_TT_TABLE("coating-depth-max", tt_coat_max,
  166.     "max depth of coating type over another type of terrain",
  167.     ttcoatmax, constttcoatmax, 0, 0, TABHI)
  168.  
  169. DEF_TT_TABLE("coating-depth-min", tt_coat_min,
  170.     "min depth of coating type over another type of terrain",
  171.     ttcoatmin, constttcoatmin, 0, 0, TABHI)
  172.  
  173. DEF_UM_TABLE("consumption-as-occupant", um_consumption_as_occupant,
  174.     "effect of being an occupant on base consumption",
  175.     umconsumptionasoccupant, constumconsumptionasoccupant, 0, 100, TABHI)
  176.  
  177. DEF_UM_TABLE("consumption-on-creation", um_consumption_on_creation,
  178.     "amount of material used by any creator to create a type of unit",
  179.     umconsumptiononcreation, constumconsumptiononcreation, TABLO, 0, TABHI)
  180.  
  181. DEF_UM_TABLE("consumption-per-attack", um_consumption_per_attack,
  182.     "amount of material used up by an attack action",
  183.     umconsumptionperattack, constumconsumptionperattack, TABLO, 0, TABHI)
  184.  
  185. DEF_UM_TABLE("consumption-per-build", um_consumption_per_build,
  186.     "amount of material used up by a build action",
  187.     umconsumptionperbuild, constumconsumptionperbuild, TABLO, 0, TABHI)
  188.  
  189. DEF_UM_TABLE("consumption-per-move", um_consumption_per_move,
  190.     "amount of material used up by a move action",
  191.     umconsumptionpermove, constconsumptionpermove, TABLO, 0, TABHI)
  192.  
  193. DEF_UM_TABLE("consumption-per-repair", um_consumption_per_repair,
  194.     "amount of material used up by any repair action on a type of unit",
  195.     umconsumptionoperrepair, constconsumptionperrepair, TABLO, 0, TABHI)
  196.  
  197. DEF_UU_TABLE("control-chance", uu_control,
  198.     "base chance that a unit can control another",
  199.     uucontrol, constuucontrol, -1, 0, 100)
  200.  
  201. DEF_UU_TABLE("control-chance-at", uu_control_at,
  202.     "base chance that a unit can control another in the same cell",
  203.     uucontrolat, constuucontrolat, -1, 0, 100)
  204.  
  205. DEF_UU_TABLE("control-chance-adjacent", uu_control_adj,
  206.     "base chance that a unit can control another in an adjacent cell",
  207.     uucontroladj, constuucontroladj, -1, 0, 100)
  208.  
  209. DEF_UU_TABLE("control-range", uu_control_range,
  210.     "distance out to which a unit can control another unit",
  211.     uucontrolrange, constuucontrolrange, -1, 0, TABHI)
  212.  
  213. DEF_UU_TABLE("counterattack", uu_counterattack,
  214.     "normal strength of reaction to direct attack",
  215.     uucounterattack, constuucounterattack, 0, 100, TABHI)
  216.  
  217. DEF_UU_TABLE("countercapture", uu_countercapture,
  218.     "normal strength of reaction to capture attempts",
  219.     uucountercapture, constuucountercapture, 0, 0, TABHI)
  220.  
  221. DEF_UU_TABLE("cp-on-creation", uu_creation_cp,
  222.     "completeness point of the unit when first created",
  223.     uucreationcp, constuucreationcp, 0, 1, TABHI)
  224.  
  225. DEF_UU_TABLE("cp-per-build", uu_cp_per_build,
  226.     "completeness points added by one build action",
  227.     uucpperbuild, constuucpperbuild, 0, 1, TABHI)
  228.  
  229. DEF_UU_TABLE("create-range", uu_create_range,
  230.     "max distance between unit and unit being created",
  231.     uucreaterange, constuucreaterange, 0, 0, TABHI)
  232.  
  233. DEF_UU_TABLE("cxp-per-capture", uu_cxp_per_capture,
  234.     "combat experience gained from attempting to capture",
  235.     uucxppercapture, constuucxppercapture, 0, 0, TABHI)
  236.  
  237. DEF_UU_TABLE("cxp-per-combat", uu_cxp_per_combat,
  238.     "combat experience gained from attack or defense",
  239.     uucxppercombat, constuucxppercombat, 0, 0, TABHI)
  240.  
  241. DEF_UU_TABLE("damage", uu_damage,
  242.     "points of damage that one unit will inflict on another",
  243.     uudamage, constuudamage, 0, 0, 32767)
  244.  
  245. DEF_UU_TABLE("damage-cxp-effect", uu_damage_cxp,
  246.     "effect of combat experience on damage",
  247.     uudamagecxp, constuudamagecxp, 0, 100, TABHI)
  248.  
  249. DEF_UT_TABLE("defend-terrain-effect", ut_defend_terrain_effect,
  250.     "effect of defender's terrain on attack results",
  251.     utdefendterraineffect, constutdefendterraineffect, 0, 100, TABHI)
  252.  
  253. DEF_UU_TABLE("detonate-on-approach-range", uu_detonate_approach_range,
  254.     "range at which a unit will detonate if another approaches",
  255.     uudetonateapproachrange, constdetonateapproachrange, -1, -1, TABHI)
  256.  
  257. DEF_UU_TABLE("detonate-on-capture", uu_detonate_on_capture,
  258.     "chance that a unit will detonate when captured",
  259.     uudetonateoncapture, constdetonateoncapture, 0, 0, 100)
  260.  
  261. DEF_UU_TABLE("detonate-on-hit", uu_detonate_on_hit,
  262.     "chance that a unit will detonate when hit in combat",
  263.     uudetonateonhit, constdetonateonhit, 0, 0, 100)
  264.  
  265. DEF_UT_TABLE("detonation-accident-chance", ut_detonation_accident,
  266.     "chance of an accidental detonation",
  267.     utdetonationaccident, constutdetonationaccident, 0, 0, TABHI)
  268.  
  269. DEF_UU_TABLE("detonation-damage-at", uu_detonation_damage_at,
  270.     "damage done to units in the same cell as a detonation",
  271.     uudetonationdamageat, constuudetonationdamageat, 0, 0, TABHI)
  272.  
  273. DEF_UU_TABLE("detonation-damage-adjacent", uu_detonation_damage_adj,
  274.     "damage done to units adjacent to a detonation",
  275.     uudetonationdamageadj, constuudetonationdamageadj, 0, 0, TABHI)
  276.  
  277. DEF_UT_TABLE("detonation-terrain-range", ut_detonation_range,
  278.     "distance for detonation effects on terrain",
  279.     utdetonationrange, constutdetonationrange, 0, 0, TABHI)
  280.  
  281. DEF_UU_TABLE("detonation-unit-range", uu_detonation_range,
  282.     "distance for detonation effects on units",
  283.     uudetonationrange, constuudetonationrange, 0, 0, TABHI)
  284.  
  285. DEF_UT_TABLE("detonation-terrain-damage-chance", ut_detonation_damage,
  286.     "chance that detonation will damage a type of terrain",
  287.     utdetonationdamage, constutdetonationdamage, 0, 0, 100)
  288.  
  289. DEF_UT_TABLE("eye-height", ut_eye_height,
  290.     "effective height of a unit's eyes in a type of terrain",
  291.     uteyeheight, constuteyeheight, TABLO, 0, TABHI)
  292.  
  293. DEF_UT_TABLE("favored-terrain", ut_favored,
  294.     "the chance for a unit to be placed on a type of terrain",
  295.     utfavored, constfavored, 0, 100, 100)
  296.  
  297. DEF_UU_TABLE("ferry-on-entry", uu_ferry_on_enter,
  298.     "amount of intervening terrain that transport will take entering units over",
  299.     uuferryonenter, constuuferryonenter, 0, 2, 3)
  300.  
  301. DEF_UU_TABLE("ferry-on-departure", uu_ferry_on_leave,
  302.     "amount of intervening terrain that transport will take leaving units over",
  303.     uuferryonleave, constuuferryonleave, 0, 2, 3)
  304.  
  305. DEF_UT_TABLE("fire-attack-terrain-effect", ut_fire_attack_terrain_effect,
  306.     "effect of terrain on an attack's fire hit chance",
  307.     utfireattackterraineffect, constfireutattackterraineffect, 0, 100, TABHI)
  308.  
  309. DEF_UU_TABLE("fire-damage", uu_fire_damage,
  310.     "damage that a unit will inflict on another by firing at it",
  311.     uufiredamage, constuufiredamage, -1, -1, 32767)
  312.  
  313. DEF_UT_TABLE("fire-defend-terrain-effect", ut_fire_defend_terrain_effect,
  314.     "effect of terrain on an defend's fire hit chance",
  315.     utfiredefendterraineffect, constfireutdefendterraineffect, 0, 100, TABHI)
  316.  
  317. DEF_UU_TABLE("fire-hit-chance", uu_fire_hit,
  318.     "base chance for a unit to hit another unit by firing at it",
  319.     uufirehitchance, constuufirehitchance, -1, -1, 100)
  320.  
  321. DEF_UU_TABLE("hp-min", uu_hp_min,
  322.     "minimum below which attacker cannot reduce a defender's HP",
  323.     uuhpmin, constuuhpmin, 0, 0, TABHI)
  324.  
  325. DEF_UU_TABLE("hp-to-garrison", uu_hp_to_garrison,
  326.     "hp of a unit that gets used up to garrison a capture",
  327.     uuhptogarrison, constuuhptogarrison, 0, 0, TABHI)
  328.  
  329. DEF_UU_TABLE("hit-at-max-range-effect", uu_hit_max_range_effect,
  330.     "chance for a type of unit to hit another type of unit at longest range",
  331.     uuhitatmaxrangeeffect, constuuhitatmaxrangeeffect, 0, 100, TABHI)
  332.  
  333. DEF_UM_TABLE("hit-by", um_hit_by,
  334.     "kind of ammo that hits unit",
  335.     umhitby, constumhitby, 0, 0, TABHI)
  336.  
  337. DEF_UU_TABLE("hit-chance", uu_hit,
  338.     "base chance for a type of unit to hit another type of unit",
  339.     uuhitchance, constuuhitchance, 0, 0, 100)
  340.  
  341. DEF_UU_TABLE("hit-cxp-effect", uu_hit_cxp,
  342.     "effect of combat experience on hit chance",
  343.     uuhitcxp, constuuhitcxp, 0, 100, TABHI)
  344.  
  345. DEF_UU_TABLE("hp-per-repair", uu_repair,
  346.     "HP restored by a repair action",
  347.     uuhprepair, constuuhprepair, 0, 0, TABHI)
  348.  
  349. DEF_UU_TABLE("hp-to-repair", uu_hp_to_repair,
  350.     "minimum HP to be able to do repairs to another unit",
  351.     uuhptorepair, constuuhptorepair, 1, 1, TABHI)
  352.  
  353. DEF_UM_TABLE("hp-per-starve", um_hp_per_starve,
  354.     "HP lost/gained per turn of starvation",
  355.     umhpstarve, constumhpstarve, -10000, 0, 10000)
  356.  
  357. DEF_UM_TABLE("in-length", um_inlength,
  358.     "length of supply line coming in",
  359.     uminlength, constuminlength, -1, 0, TABHI)
  360.  
  361. DEF_UU_TABLE("independent-capture-chance", uu_indep_capture,
  362.     "base chance for one type of unit to capture another indep type",
  363.     uuindepcapture, constuuindepcapture, -1, -1, 100)
  364.  
  365. DEF_UT_TABLE("independent-density", ut_indep_density,
  366.     "likelihood of an indep unit type on a terrain type",
  367.     utindepdensity, constutindepdensity, 0, 0, 10000)
  368.  
  369. DEF_UM_TABLE("load-max", um_load_max,
  370.     "maximum of material that may be added by a transfer action",
  371.     umloadmax, constumloadmax, -1, -1, TABHI)
  372.  
  373. DEF_UM_TABLE("material-per-production", um_material_per_production,
  374.     "amount of material created by a production action",
  375.     umperproduction, constumperproduction, 0, 0, TABHI)
  376.  
  377. DEF_UM_TABLE("material-to-act", um_to_act,
  378.     "supplies needed to be able to act at all",
  379.     umtoact, constumtact, 0, 0, TABHI)
  380.  
  381. DEF_UM_TABLE("material-to-build", um_to_build,
  382.     "supplies needed to be able to work on a unit",
  383.     umtobuild, constumtobuild, 0, 0, TABHI)
  384.  
  385. DEF_UM_TABLE("material-to-change-type", um_to_change_type,
  386.     "supplies needed to be able to change type",
  387.     umtochangetype, constumtochangetype, 0, 0, TABHI)
  388.  
  389. DEF_UM_TABLE("material-to-create", um_to_create,
  390.     "supplies needed to be able to create",
  391.     umtocreate, constumtocreate, 0, 0, TABHI)
  392.  
  393. DEF_UM_TABLE("material-to-fight", um_to_fight,
  394.     "supplies needed to be able to do any sort of combat",
  395.     umtofight, constumtofight, 0, 0, TABHI)
  396.  
  397. DEF_UM_TABLE("material-to-move", um_to_move,
  398.     "supplies needed to be able to move",
  399.     umtomove, constumtomove, 0, 0, TABHI)
  400.  
  401. DEF_UM_TABLE("material-to-produce", um_to_produce,
  402.     "supplies needed to be able to produce anything",
  403.     umtoproduce, constumtoproduce, 0, 0, TABHI)
  404.  
  405. DEF_UM_TABLE("material-to-repair", um_to_repair,
  406.     "supplies needed to be able to repair anything",
  407.     umtorepair, constumtorepair, 0, 0, TABHI)
  408.  
  409. DEF_UU_TABLE("speed-occupant-effect", uu_speed_occ_effect,
  410.     "effect of occupants on transport speed",
  411.     uuspeedocceffect, constuuspeedocceffect, 0, 100, TABHI)
  412.  
  413. DEF_UT_TABLE("mp-to-enter-terrain", ut_mp_to_enter,
  414.     "mp needed to enter the terrain",
  415.     utmptoenter, constutmptoenter, -1, 1, TABHI)
  416.  
  417. DEF_UU_TABLE("mp-to-enter-unit", uu_mp_to_enter,
  418.     "mp needed to enter a type of unit",
  419.     uumptoenter, constuumptoenter, -1, 0, TABHI)
  420.  
  421. DEF_UU_TABLE("mp-to-enter-zoc", uu_mp_to_enter_zoc,
  422.     "mp needed to enter the zoc of a type of unit",
  423.     uumptoenterzoc, constuumptoenterzoc, -1, -1, TABHI)
  424.  
  425. DEF_UT_TABLE("mp-to-leave-terrain", ut_mp_to_leave,
  426.     "mp needed to leave a type of terrain",
  427.     utmptoleave, constutmptoleave, -1, 0, TABHI)
  428.  
  429. DEF_UU_TABLE("mp-to-leave-unit", uu_mp_to_leave,
  430.     "mp needed to leave a type of unit",
  431.     uumptoleave, constuumptoleave, -1, 0, TABHI)
  432.  
  433. DEF_UU_TABLE("mp-to-leave-zoc", uu_mp_to_leave_zoc,
  434.     "mp needed to leave the zoc of a type of unit",
  435.     uumptoleavezoc, constuumptoleavezoc, -1, 0, TABHI)
  436.  
  437. DEF_UT_TABLE("mp-to-traverse", ut_mp_to_traverse,
  438.     "mp needed to move along a connection",
  439.     utmptotraverse, constutmptotraverse, 0, 1, TABHI)
  440.  
  441. DEF_UU_TABLE("mp-to-traverse-zoc", uu_mp_to_traverse_zoc,
  442.     "mp needed to move within the zoc of a type of unit",
  443.     uumptotraversezoc, constuumptotraversezoc, -1, 0, TABHI)
  444.  
  445. DEF_UM_TABLE("occupant-base-production", um_occ_production,
  446.     "amount of material automatically produced by an occupant",
  447.     umoccproduction, constumoccproduction, -1, -1, TABHI)
  448.  
  449. DEF_UU_TABLE("occupant-can-have-occupants", uu_occ_can_have_occs,
  450.     "true if a type of occupant can have occupants itself",
  451.     uuocccanhaveoccs, constuuocccanhaveoccs, 0, 1, 1)
  452.  
  453. DEF_UU_TABLE("occupant-can-construct", uu_occ_can_build,
  454.     "true if a type of occupant can build",
  455.     uuocccanbuild, constuuocccanbuild, 0, 1, 1)
  456.  
  457. DEF_UU_TABLE("occupant-combat", uu_occ_combat,
  458.     "effect of being an occupant on combat performance",
  459.     uuocccombat, constuuocccombat, 0, 100, TABHI)
  460.  
  461. DEF_UU_TABLE("occupant-escape-chance", uu_occ_escape,
  462.     "base chance for a type of unit to move to avoid capture",
  463.     uuoccescape, constuuoccescape, 0, 0, 100)
  464.  
  465. DEF_UU_TABLE("occupant-vision", uu_occ_can_see,
  466.     "true if a type of occupant can see",
  467.     uuocccansee, constuuocccansee, 0, 1, 1)
  468.  
  469. DEF_UU_TABLE("occupant-max", uu_occ_max,
  470.     "extra ceiling on total number of a type",
  471.     uuoccmax, constuuoccmax, -1, -1, TABHI)
  472.  
  473. DEF_UM_TABLE("out-length", um_outlength,
  474.     "length of supply line going out",
  475.     umoutlength, constoutlength, -1, 0, TABHI)
  476.  
  477. DEF_MM_TABLE("people-consumption", mm_people_consumption,
  478.     "amount of material consumption by people",
  479.     mmpeopleconsumption, constmmpeopleconsumption, 0, 0, TABHI)
  480.  
  481. DEF_MM_TABLE("people-production", mm_people_production,
  482.     "amount of material production by people",
  483.     mmpeopleproduction, constmmpeopleproduction, 0, 0, TABHI)
  484.  
  485. DEF_UM_TABLE("people-see-chance", um_people_see,
  486.     "base chance for a type of people to see unit",
  487.     umpeoplesee, constumpeoplesee, 0, 100, 100)
  488.  
  489. DEF_UT_TABLE("people-surrender-chance", ut_people_surrender,
  490.     "Chance that people will surrender to occupying unit",
  491.     utpeoplesurrender, constutpeoplesurrender, 0, 0, 100)
  492.  
  493. DEF_UM_TABLE("people-surrender-effect", um_people_surrender,
  494.     "effect of people type on surrender chance",
  495.     umpeoplesurrender, constumpeoplesurrender, 0, 100, TABHI)
  496.  
  497. DEF_UT_TABLE("productivity", ut_productivity,
  498.     "effect of terrain on production",
  499.     utproductivity, constproductivity, 0, 100, TABHI)
  500.  
  501. DEF_UM_TABLE("productivity-max", um_productivity_max,
  502.     "upper limit on productivity for a material",
  503.     umproductivitymax, constumproductivitymax, 0, TABHI, TABHI)
  504.  
  505. DEF_UM_TABLE("productivity-min", um_productivity_min,
  506.     "lower limit on productivity for a material",
  507.     umproductivitymin, constumproductivitymin, 0, 0, TABHI)
  508.  
  509. DEF_UU_TABLE("protection", uu_protection,
  510.     "The degree to which transports protect occupants and vice versa",
  511.     uuprotection, constuuprotection, 0, 100, TABHI)
  512.  
  513. DEF_UM_TABLE("recycleable-material", um_recycleable,
  514.     "amount of material recoverable from a unit being disbanded",
  515.     umrecycleable, constumrecycleable, 0, 0, TABHI)
  516.  
  517. DEF_UU_TABLE("retreat-chance", uu_retreat_chance,
  518.     "chance to retreat after combat",
  519.     uuretreatchance, constuuretreatchance, 0, 0, 100)
  520.  
  521. DEF_UU_TABLE("road-chance", uu_road_chance,
  522.     "chance for a road from one type to another",
  523.     uuroadchance, constuuroadchance, 0, 0, 100)
  524.  
  525. DEF_TT_TABLE("road-into-chance", tt_road_into_chance,
  526.     "chance for type of road into type of terrain",
  527.     ttroadintochance, constttroadintochance, 0, 0, 100)
  528.  
  529. DEF_UU_TABLE("scuttle-chance", uu_scuttle,
  530.     "base chance for u1 to wreck self to avoid capture by u2",
  531.     uuscuttle, constscuttle, 0, 0, 100)
  532.  
  533. DEF_UU_TABLE("see-chance", uu_see,
  534.     "chance for a type of unit to see another type at a distance",
  535.     uusee, constuusee, 0, 100, 100)
  536.  
  537. DEF_UU_TABLE("see-chance-at", uu_see_at,
  538.     "chance for a type of unit to see another type in an adjacent cell",
  539.     uuseeat, constuuseeat, 0, 100, 100)
  540.  
  541. DEF_UU_TABLE("see-chance-adjacent", uu_see_adj,
  542.     "chance for a type of unit to see another type in the same cell",
  543.     uuseeadj, constuuseeadj, 0, 100, 100)
  544.  
  545. DEF_UU_TABLE("spy-quality", uu_spy_quality,
  546.     "chance for u1 to return info about u2 when spied upon",
  547.     uuspyquality, constspyquality, 0, 100, 100)
  548.  
  549. DEF_UU_TABLE("stack-protection", uu_stack_protection,
  550.     "the degree to which units in same cell protect each other",
  551.     uustackprotection, constuustackprotection, 0, 100, TABHI)
  552.  
  553. DEF_UM_TABLE("supply-on-creation", um_created_supply,
  554.     "materials created for a newly created unit",
  555.     umcreatedsupply, constumcreatedsupply, 0, 0, TABHI)
  556.  
  557. DEF_UM_TABLE("supply-on-completion", um_completed_supply,
  558.     "materials created for a newly completed unit",
  559.     umcompletedsupply, constumcompletedsupply, 0, 0, TABHI)
  560.  
  561. DEF_UM_TABLE("supply-per-disband", um_supply_per_disband,
  562.     "amount of supply recovered from a disband action",
  563.     umsupplyperdisband, constumsupplyperdisband, 0, 0, TABHI)
  564.  
  565. DEF_UU_TABLE("surrender-chance", uu_surrender_chance,
  566.     "base chance for a unit to surrender to another nearby",
  567.     uusurrenderchance, constuusurrenderchance, 0, 0, TABHI)
  568.  
  569. DEF_UU_TABLE("surrender-chance-per-attack", uu_surrender_per_attack,
  570.     "chance that a unit will surrender upon being attacked",
  571.     uusurrenderattack, constuusurrenderattack, 0, 0, 100)
  572.  
  573. DEF_UU_TABLE("surrender-range", uu_surrender_range,
  574.     "distance out to which a unit will surrender",
  575.     uusurrenderrange, constuusurrenderrange, 0, 0, TABHI)
  576.  
  577. DEF_UU_TABLE("tech-crossover", uu_tech_crossover,
  578.     "effect of tech for one type on tech for another type",
  579.     uutechcross, constuutechcross, 0, 0, 100)
  580.  
  581. DEF_UU_TABLE("tech-per-research", uu_tech_per_research,
  582.     ".01 tech increase from one research action",
  583.     uutechperresearch, constuutechperresearch, 0, 0, TABHI)
  584.  
  585. DEF_UU_TABLE("temperature-protection", uu_temp_protect,
  586.     "true if the transport protects the occupant from temperature effects",
  587.     uutempprotect, constuutempprotect, 0, 0, 1)
  588.  
  589. DEF_TM_TABLE("terrain-consumption", tm_consumption,
  590.     "amount of material consumption by a cell each turn",
  591.     tmconsumption, consttmconsumption, 0, 0, TABHI)
  592.  
  593. DEF_TM_TABLE("terrain-production", tm_production,
  594.     "amount of material production by a cell each turn",
  595.     tmproduction, consttmproduction, 0, 0, TABHI)
  596.  
  597. DEF_UT_TABLE("terrain-capacity-x", ut_capacity_x,
  598.     "number of units that can always be in terrain",
  599.     utcapacityx, constutcapacityx, 0, 0, TABHI)
  600.  
  601. DEF_TT_TABLE("terrain-damaged-type", tt_damaged_type,
  602.     "chance that a type of terrain will change into another type if damaged",
  603.     ttdamagedtype, constttdamagedtype, 0, 0, TABHI)
  604.  
  605. DEF_TM_TABLE("terrain-exhaustion-type", tm_exhaust_type,
  606.     "type of terrain that will replace terrain that loses all of a material",
  607.     tmexhausttype, consttmexhausttype, 0, NONTTYPE, NONTTYPE)
  608.  
  609. DEF_TM_TABLE("terrain-initial-supply", tm_initial,
  610.     "amount of each material that a cell starts with",
  611.     tminitial, consttminitial, 0, 0, TABHI)
  612.  
  613. DEF_TM_TABLE("terrain-storage-x", tm_storage_x,
  614.     "amount of each material that a cell can hold",
  615.     tmstoragex, consttmstoragex, 0, 0, TABHI)
  616.  
  617. DEF_UU_TABLE("tp-max", uu_tp_max,
  618.     "maximum possible tooling",
  619.     uutpmax, constuutpmax, 0, 0, TABHI)
  620.  
  621. DEF_UU_TABLE("tp-per-toolup", uu_tp_per_toolup,
  622.     "tooling points gained from a toolup action",
  623.     uutppertoolup, constuutppertoolup, 0, 1, TABHI)
  624.  
  625. DEF_UU_TABLE("tp-to-build", uu_tp_to_build,
  626.     "tooling points needed to build a unit",
  627.     uutptobuild, constuutptobuild, 0, 0, TABHI)
  628.  
  629. DEF_UU_TABLE("tp-attrition", uu_tp_attrition,
  630.     "loss of tooling points each turn",
  631.     uutpattrition, constuutpattrition, 0, 0, TABHI)
  632.  
  633. DEF_UU_TABLE("tp-crossover", uu_tp_crossover,
  634.     "effect of tooling for one type on tooling for another type",
  635.     uutpcrossover, constuutpcrossover, 0, 0, 100)
  636.  
  637. DEF_UM_TABLE("unit-initial-supply", um_initial,
  638.     "amount of each material that a unit starts with",
  639.     utinitial, constinitial, 0, 0, TABHI)
  640.  
  641. DEF_UU_TABLE("unit-capacity-x", uu_capacity_x,
  642.     "carrying capacity reserved for unit type",
  643.     uucapacityx, constuucapacityx, 0, 0, TABHI)
  644.  
  645. DEF_UU_TABLE("unit-size-as-occupant", uu_size,
  646.     "how much space an occupant takes up in the given transport",
  647.     uusize, constuusize, 0, 1, TABHI)
  648.  
  649. DEF_UT_TABLE("unit-size-in-terrain", ut_size,
  650.     "how much space a unit takes up in a cell",
  651.     utsize, constutsize, 0, 1, TABHI)
  652.  
  653. DEF_UM_TABLE("unit-storage-x", um_storage_x,
  654.     "capacity for each material type",
  655.     umstoragex, constumstoragex, 0, 0, TABHI)
  656.  
  657. DEF_UM_TABLE("unload-max", um_unload_max,
  658.     "maximum amount of material that may be removed by a transfer action",
  659.     umunloadmax, constumunloadmax, -1, -1, TABHI)
  660.  
  661. DEF_UT_TABLE("vanishes-on", ut_vanishes_on,
  662.     "true if a unit in the terrain simply vanishes",
  663.     utvanisheson, constutvanisheson, 0, 0, 1)
  664.  
  665. DEF_UT_TABLE("visibility", ut_visibility,
  666.     "base chance to see unit when in terrain",
  667.     utvisibility, constutvisibility, 0, 100, 100)
  668.  
  669. DEF_UT_TABLE("vision-night-effect", ut_vision_night_effect,
  670.     "effect of night on vision",
  671.     utvisionnighteffect, constutvisionnighteffect, 0, 100, TABHI)
  672.  
  673. DEF_UU_TABLE("withdraw-chance-per-attack", uu_withdraw_per_attack,
  674.     "chance that a unit will retreat to avoid an attack",
  675.     uuwithdrawattack, constuuwithdrawattack, 0, 0, 100)
  676.  
  677. DEF_UT_TABLE("wrecks-on", ut_wrecks_on,
  678.     "true if a unit in the terrain becomes wrecked",
  679.     utwreckson, constutwreckson, 0, 0, 1)
  680.  
  681. DEF_UT_TABLE("zoc-into-terrain", ut_zoc_into,
  682.     "true if a unit exerts its ZOC into a type of terrain",
  683.     utzocinto, constutzocinto, 0, 1, 1)
  684.  
  685. DEF_UT_TABLE("zoc-from-terrain-effect", ut_zoc_from_terrain,
  686.     "effects of a unit's terrain on its ZOC",
  687.     utzocfromterrain, constutzocfromterrain, 0, 100, TABHI)
  688.  
  689. DEF_UU_TABLE("zoc-range", uu_zoc_range,
  690.     "distance to which ZOC is exerted",
  691.     uuzocrange, constuuzocrange, -1, 0, TABHI)
  692.  
  693. DEF_UU_TABLE("zz-basic-hit-worth", uu_zz_bhw,
  694.     "",
  695.     uuzzbhw, constuuzzbhw, 0, 0, 0)
  696.  
  697. DEF_UU_TABLE("zz-basic-fire-worth", uu_zz_bfw,
  698.     "",
  699.     uuzzbfw, constuuzzbfw, 0, 0, 0)
  700.  
  701. DEF_UU_TABLE("zz-basic-capture-worth", uu_zz_bcw,
  702.     "",
  703.     uuzzbcw, constuuzzbcw, 0, 0, 0)
  704.  
  705. DEF_UU_TABLE("zz-basic-transport-worth", uu_zz_btw,
  706.     "",
  707.     uuzzbtw, constuuzzbtw, 0, 0, 0)
  708.